package com.kongmou.springReview.advanced.taskExecutor;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestAsync {
	
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TaskExecutorConfig.class);
		AsyncService asyncService = context.getBean(AsyncService.class);
		for(int i = 0; i<= 10; i++){
			asyncService.executeTask(i);
			asyncService.executeTaskPlus(i);
		}
		context.close();
	}

}
